{"ast":null,"code":"var _jsxFileName = \"/data/messenger.client/src/components/Messages/index.tsx\";\nimport React from 'react';\nimport { Message } from \"../index\";\nimport \"./Messages.scss\";\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nimport { Fragment as _Fragment } from \"react/jsx-dev-runtime\";\nconst Messages = props => {\n  if (props.messages && props.messages.items.length > 0) {\n    return /*#__PURE__*/_jsxDEV(_Fragment, {\n      children: props.messages.items.map(item => /*#__PURE__*/_jsxDEV(Message, {\n        message: item\n      }, item.id, false, {\n        fileName: _jsxFileName,\n        lineNumber: 11,\n        columnNumber: 54\n      }, this))\n    }, void 0, false);\n  } else if (props.messages) {\n    return /*#__PURE__*/_jsxDEV(\"div\", {\n      className: \"messages-items\",\n      children: [/*#__PURE__*/_jsxDEV(\"span\", {\n        className: \"messages-items-title\",\n        children: \"\\u0412 \\u0434\\u0430\\u043D\\u043D\\u043E\\u043C \\u0434\\u0438\\u0430\\u043B\\u043E\\u0433\\u0435, \\u043F\\u043E\\u043A\\u0430 \\u043D\\u0435\\u0442 \\u0441\\u043E\\u043E\\u0431\\u0449\\u0435\\u043D\\u0438\\u0439\"\n      }, void 0, false, {\n        fileName: _jsxFileName,\n        lineNumber: 17,\n        columnNumber: 17\n      }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n        className: \"messages-items--noData\"\n      }, void 0, false, {\n        fileName: _jsxFileName,\n        lineNumber: 18,\n        columnNumber: 17\n      }, this)]\n    }, void 0, true, {\n      fileName: _jsxFileName,\n      lineNumber: 16,\n      columnNumber: 13\n    }, this);\n  } else {\n    return /*#__PURE__*/_jsxDEV(\"div\", {\n      className: \"messages-items\",\n      children: [/*#__PURE__*/_jsxDEV(\"span\", {\n        className: \"messages-items-title\",\n        children: \"\\u041E\\u0442\\u043A\\u0440\\u043E\\u0439\\u0442\\u0435 \\u0434\\u0438\\u0430\\u043B\\u043E\\u0433, \\u0447\\u0442\\u043E\\u0431\\u044B \\u043D\\u0430\\u0447\\u0430\\u0442\\u044C \\u043E\\u0431\\u0449\\u0435\\u043D\\u0438\\u0435\"\n      }, void 0, false, {\n        fileName: _jsxFileName,\n        lineNumber: 24,\n        columnNumber: 17\n      }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n        className: \"messages-items--openDialog\"\n      }, void 0, false, {\n        fileName: _jsxFileName,\n        lineNumber: 25,\n        columnNumber: 17\n      }, this)]\n    }, void 0, true, {\n      fileName: _jsxFileName,\n      lineNumber: 23,\n      columnNumber: 13\n    }, this);\n  }\n};\n_c = Messages;\nexport default Messages;\nvar _c;\n$RefreshReg$(_c, \"Messages\");","map":{"version":3,"names":["React","Message","Messages","props","messages","items","length","map","item","id"],"sources":["/data/messenger.client/src/components/Messages/index.tsx"],"sourcesContent":["import React from 'react';\nimport {Message} from \"../index\";\nimport {MessagesProps} from \"../../models/props/MessagesProps\";\nimport \"./Messages.scss\";\n\nconst Messages: React.FC<MessagesProps> = (props) => {\n\n    if (props.messages && props.messages.items.length > 0) {\n        return (\n            <>\n                {props.messages.items.map((item) => (<Message message={item} key={item.id}/>))}\n            </>\n        );\n    } else if (props.messages) {\n        return (\n            <div className=\"messages-items\">\n                <span className=\"messages-items-title\">В данном диалоге, пока нет сообщений</span>\n                <div className=\"messages-items--noData\" />\n            </div>\n        );\n    } else {\n        return (\n            <div className=\"messages-items\">\n                <span className=\"messages-items-title\">Откройте диалог, чтобы начать общение</span>\n                <div className=\"messages-items--openDialog\" />\n            </div>\n        );\n    }\n}\n\nexport default Messages;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAQC,OAAO,QAAO,UAAU;AAEhC,OAAO,iBAAiB;AAAC;AAAA;AAEzB,MAAMC,QAAiC,GAAIC,KAAK,IAAK;EAEjD,IAAIA,KAAK,CAACC,QAAQ,IAAID,KAAK,CAACC,QAAQ,CAACC,KAAK,CAACC,MAAM,GAAG,CAAC,EAAE;IACnD,oBACI;MAAA,UACKH,KAAK,CAACC,QAAQ,CAACC,KAAK,CAACE,GAAG,CAAEC,IAAI,iBAAM,QAAC,OAAO;QAAC,OAAO,EAAEA;MAAK,GAAMA,IAAI,CAACC,EAAE;QAAA;QAAA;QAAA;MAAA,QAAI;IAAC,iBAC/E;EAEX,CAAC,MAAM,IAAIN,KAAK,CAACC,QAAQ,EAAE;IACvB,oBACI;MAAK,SAAS,EAAC,gBAAgB;MAAA,wBAC3B;QAAM,SAAS,EAAC,sBAAsB;QAAA;MAAA;QAAA;QAAA;QAAA;MAAA,QAA4C,eAClF;QAAK,SAAS,EAAC;MAAwB;QAAA;QAAA;QAAA;MAAA,QAAG;IAAA;MAAA;MAAA;MAAA;IAAA,QACxC;EAEd,CAAC,MAAM;IACH,oBACI;MAAK,SAAS,EAAC,gBAAgB;MAAA,wBAC3B;QAAM,SAAS,EAAC,sBAAsB;QAAA;MAAA;QAAA;QAAA;QAAA;MAAA,QAA6C,eACnF;QAAK,SAAS,EAAC;MAA4B;QAAA;QAAA;QAAA;MAAA,QAAG;IAAA;MAAA;MAAA;MAAA;IAAA,QAC5C;EAEd;AACJ,CAAC;AAAA,KAvBKF,QAAiC;AAyBvC,eAAeA,QAAQ;AAAC;AAAA"},"metadata":{},"sourceType":"module"}